CC = g++
INCLUDE =-I../../dep/mysqlconnector/include   -I../public
LIB =  -L../../dep/mysqlconnector/lib 

include ../../build/config.mk
DBS_DIR=$(INSTALL_DIR)/dbs
BIN_DIR=$(DBS_DIR)/bin
BIN = lkt-dr
SRC = lkt-dr.c
LDFLAGS=../../dep/mysqlconnector/lib/libmysqlclient.a -lpthread -ldl
all:
	$(CC) $(CFLAGS) $(SRC) -o $(BIN) $(LDFLAGS) $(INCLUDE) $(LIB)  -Wall
install:
	strip $(BIN)
	cp $(BIN) $(BIN_DIR) -fr

clean:
	rm -fr $(BIN)
